package com.wodsy.phoenix.datadao.base;

import java.io.Serializable;
import java.util.List;

public interface IBaseDao<M extends Serializable,PK extends Serializable>{
	public M get(PK pk);
	public void save(M obj);
	public void update(M ojb);
	public void merge(M ojb);
	public void delete(M obj);
	public void saveOrUpdate(M obj);
	public List<M> findByAll();
	public M findByProperty(String propertyName, Object value);
	public List<M> findAllByProperty(String propertyName, Object value);
}
